//
//  CameraFaceDetectionExampleViewController.h
//  CameraFaceDetectionExample
//
//  Created by Xiaochao Yang on 8/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <opencv/cxcore.h>
#import <opencv/cv.h>
#import <opencv/highgui.h>

@interface CameraFaceDetectionExampleViewController : UIViewController {
    
    // UI
    IBOutlet UIImageView *mImageView;
    IBOutlet UIButton *mBtn;
    
    
    // For capturing
    NSTimer* mTimer;
    CvCapture* mCVCam;
    IplImage* mColorImage;
    IplImage* mGreyImage;
    CvHaarClassifierCascade* mHaarCascade;
    CvPoint2D32f *mFeatPts;
    CvRect mFaceRect;
    CvFont mFont;
    NSDate *timerDate;
    
}

@property (retain) UIImageView *mImageView;
@property (retain) UIButton *mBtn;

-(IBAction)btnPressed:(UIButton *)sender;

@end
